<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>ArrayMath</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">ArrayMath</p>
<hr class="separator">
<div class="content">
The ArrayMath class is a utility class used to perform array computations.
<br><br>
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Method</th><th width="19%">Inherited</th><th>Description</th>
</tr>
<tr>
<td><a href="ArrayMath.ArrayMath.htm">ArrayMath</a></td><td>(Self)</td><td>Creates an ArrayMath object and initialize it with the given array.</td></tr><tr><td><a href="ArrayMath.add.htm">add</a></td><td>(Self)</td><td>Adds an array to the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.add2.htm">add2</a></td><td>(Self)</td><td>Adds a number to every element of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.sub.htm">sub</a></td><td>(Self)</td><td>Subtracts an array from the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.sub2.htm">sub2</a></td><td>(Self)</td><td>Subtracts a number from every element of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.mul.htm">mul</a></td><td>(Self)</td><td>Multiplies an array to the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.mul2.htm">mul2</a></td><td>(Self)</td><td>Multiplies a number to every element of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.div.htm">div</a></td><td>(Self)</td><td>Divides the ArrayMath object by the given array.</td></tr><tr><td><a href="ArrayMath.div2.htm">div2</a></td><td>(Self)</td><td>Divides every element of the ArrayMath object by the given number.</td></tr><tr><td><a href="ArrayMath.financeDiv.htm">financeDiv</a></td><td>(Self)</td><td>Divides the ArrayMath object by the given array, with special handling of the case of zero divided by zero.</td></tr><tr><td><a href="ArrayMath.shift.htm">shift</a></td><td>(Self)</td><td>Shifts the array "rightwards".</td></tr><tr><td><a href="ArrayMath.delta.htm">delta</a></td><td>(Self)</td><td>Subtracts each element of the ArrayMath object by an earlier element in the same ArrayMath object.</td></tr><tr><td><a href="ArrayMath.rate.htm">rate</a></td><td>(Self)</td><td>Divides each element of the ArrayMath object by an earlier element in the same ArrayMath object.</td></tr><tr><td><a href="ArrayMath.abs.htm">abs</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its absolute value.</td></tr><tr><td><a href="ArrayMath.acc.htm">acc</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by the accumulated total of its previous element (including itself).</td></tr><tr><td><a href="ArrayMath.selectGTZ.htm">selectGTZ</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object by checking if the elements of the given <b>decisionArray</b> is greater than zero.</td></tr><tr><td><a href="ArrayMath.selectGEZ.htm">selectGEZ</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object by checking if the elements of the given <b>decisionArray</b> is greater than or equal to zero.</td></tr><tr><td><a href="ArrayMath.selectLTZ.htm">selectLTZ</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object by checking if the elements of the given <b>decisionArray</b> is less than zero.</td></tr><tr><td><a href="ArrayMath.selectLEZ.htm">selectLEZ</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object by checking if the elements of the given <b>decisionArray</b> is less than or equal to zero.</td></tr><tr><td><a href="ArrayMath.selectEQZ.htm">selectEQZ</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object by checking if the elements of the given <b>decisionArray</b> is equal to zero.</td></tr><tr><td><a href="ArrayMath.selectNEZ.htm">selectNEZ</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object by checking if the elements of the given <b>decisionArray</b> is not equal to zero.</td></tr><tr><td><a href="ArrayMath.selectStartOfSecond.htm">selectStartOfSecond</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object that represents a different second from the previous element.</td></tr><tr><td><a href="ArrayMath.selectStartOfMinute.htm">selectStartOfMinute</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object that represents a different minute from the previous element.</td></tr><tr><td><a href="ArrayMath.selectStartOfHour.htm">selectStartOfHour</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object that represents a different hour from the previous element.</td></tr><tr><td><a href="ArrayMath.selectStartOfDay.htm">selectStartOfDay</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object that represents a different day from the previous element.</td></tr><tr><td><a href="ArrayMath.selectStartOfWeek.htm">selectStartOfWeek</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object that represents a different week from the previous element.</td></tr><tr><td><a href="ArrayMath.selectStartOfMonth.htm">selectStartOfMonth</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object that represents a different month from the previous element.</td></tr><tr><td><a href="ArrayMath.selectStartOfYear.htm">selectStartOfYear</a></td><td>(Self)</td><td>Selects the elements of the ArrayMath object that represents a different year from the previous element.</td></tr><tr><td><a href="ArrayMath.selectRegularSpacing.htm">selectRegularSpacing</a></td><td>(Self)</td><td>Selects an evenly spaced subset of elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.trim.htm">trim</a></td><td>(Self)</td><td>Trims the ArrayMath object by keeping only some elements in the middle.</td></tr><tr><td><a href="ArrayMath.insert.htm">insert</a></td><td>(Self)</td><td>Inserts the elements of an array to the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.insert2.htm">insert2</a></td><td>(Self)</td><td>Inserts some constant elements to the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.replace.htm">replace</a></td><td>(Self)</td><td>Finds elements that are equal to a given value and replace it with another value.</td></tr><tr><td><a href="ArrayMath.movAvg.htm">movAvg</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its moving average.</td></tr><tr><td><a href="ArrayMath.expAvg.htm">expAvg</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its exponential average.</td></tr><tr><td><a href="ArrayMath.movMed.htm">movMed</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its moving median.</td></tr><tr><td><a href="ArrayMath.movPercentile.htm">movPercentile</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its moving percentile.</td></tr><tr><td><a href="ArrayMath.movMax.htm">movMax</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its moving maximum.</td></tr><tr><td><a href="ArrayMath.movMin.htm">movMin</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its moving minimum.</td></tr><tr><td><a href="ArrayMath.movStdDev.htm">movStdDev</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by its moving standard deviation.</td></tr><tr><td><a href="ArrayMath.movCorr.htm">movCorr</a></td><td>(Self)</td><td>Replaces each element of the ArrayMath object by the moving correlation with another array or with itself.</td></tr><tr><td><a href="ArrayMath.lowess.htm">lowess</a></td><td>(Self)</td><td>Fits a curve through the data points in the ArrayMath object using the LOWESS algorithm.</td></tr><tr><td><a href="ArrayMath.lowess2.htm">lowess2</a></td><td>(Self)</td><td>Fits a curve through the data points in the ArrayMath object using the LOWESS algorithm, where the spacing of the data points is supplied by the given array.</td></tr><tr><td><a href="ArrayMath.result.htm">result</a></td><td>(Self)</td><td>Gets the content of the ArrayMath object as a normal array to be used in other ChartDirector API.</td></tr><tr><td><a href="ArrayMath.sum.htm">sum</a></td><td>(Self)</td><td>Gets the total value of the elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.max.htm">max</a></td><td>(Self)</td><td>Gets the maximum value of the elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.min.htm">min</a></td><td>(Self)</td><td>Gets the minimum value of the elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.avg.htm">avg</a></td><td>(Self)</td><td>Gets the average value of the elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.med.htm">med</a></td><td>(Self)</td><td>Gets the median value of the elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.percentile.htm">percentile</a></td><td>(Self)</td><td>Gets the required percentile value of the elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.stdDev.htm">stdDev</a></td><td>(Self)</td><td>Gets the standard deviation value of the elements of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.maxIndex.htm">maxIndex</a></td><td>(Self)</td><td>Gets the index of the maximum value element of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.minIndex.htm">minIndex</a></td><td>(Self)</td><td>Gets the index of the minimum value element of the ArrayMath object.</td></tr><tr><td><a href="ArrayMath.aggregate.htm">aggregate</a></td><td>(Self)</td><td>Aggregates a data array by merging groups of elements, similar to the GROUP BY clause in SQL statements.</td>
</tr>
</table>
</div>

</div>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
